using System;
using System.Collections.Generic;
using System.Text;

using NHibernate;
using Zwms.Data.Base;
using System.Runtime.Serialization;

namespace Zwms.Data.BusinessObjects
{
    [DataContract]
    public partial class BilPickBillDetail : BusinessBase<string>
    {
        #region Declarations

        private string _pickBillCode = String.Empty;
        private string _stockCode = String.Empty;
        private string _pickedGoodsCode = String.Empty;
        private string _pickedGoodsName = String.Empty;
        private string _pickedLocationCode = String.Empty;
        private string _pickedLocationName = String.Empty;
        private int _pickedPackageGoodsQty = default(Int32);
        private int _pickedPieceGoodsQty = default(Int32);
        private int _pickedGoodsQty = default(Int32);
        private string _pickManCode = String.Empty;
        private string _pickManName = String.Empty;
        private string _createUserCode = String.Empty;
        private string _createUserName = String.Empty;
        private string _createDate = String.Empty;
        private string _createTime = String.Empty;
        private string _editUserCode = String.Empty;
        private string _editUserName = String.Empty;
        private string _editDate = String.Empty;
        private string _editTime = String.Empty;
        private string _remark = String.Empty;



        #endregion

        #region Constructors

        public BilPickBillDetail() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();

            sb.Append(this.GetType().FullName);
            sb.Append(_pickBillCode);
            sb.Append(_stockCode);
            sb.Append(_pickedGoodsCode);
            sb.Append(_pickedGoodsName);
            sb.Append(_pickedLocationCode);
            sb.Append(_pickedLocationName);
            sb.Append(_pickedPackageGoodsQty);
            sb.Append(_pickedPieceGoodsQty);
            sb.Append(_pickedGoodsQty);
            sb.Append(_pickManCode);
            sb.Append(_pickManName);
            sb.Append(_createUserCode);
            sb.Append(_createUserName);
            sb.Append(_createDate);
            sb.Append(_createTime);
            sb.Append(_editUserCode);
            sb.Append(_editUserName);
            sb.Append(_editDate);
            sb.Append(_editTime);
            sb.Append(_remark);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties
        [DataMember]
        public virtual string PickBillCode
        {
            get { return _pickBillCode.TrimEnd(); }
            set
            {
                _pickBillCode = value;
            }
        }

        [DataMember]
        public virtual string StockCode
        {
            get { return _stockCode.TrimEnd(); }
            set
            {
                _stockCode = value;
            }
        }

        [DataMember]
        public virtual string PickedGoodsCode
        {
            get { return _pickedGoodsCode.TrimEnd(); }
            set
            {
                _pickedGoodsCode = value;
            }
        }

        [DataMember]
        public virtual string PickedGoodsName
        {
            get { return _pickedGoodsName.TrimEnd(); }
            set
            {
                _pickedGoodsName = value;
            }
        }

        [DataMember]
        public virtual string PickedLocationCode
        {
            get { return _pickedLocationCode.TrimEnd(); }
            set
            {
                _pickedLocationCode = value;
            }
        }

        [DataMember]
        public virtual string PickedLocationName
        {
            get { return _pickedLocationName.TrimEnd(); }
            set
            {
                _pickedLocationName = value;
            }
        }

        [DataMember]
        public virtual int PickedPackageGoodsQty
        {
            get { return _pickedPackageGoodsQty; }
            set
            {
                _pickedPackageGoodsQty = value;
            }
        }

        [DataMember]
        public virtual int PickedPieceGoodsQty
        {
            get { return _pickedPieceGoodsQty; }
            set
            {
                _pickedPieceGoodsQty = value;
            }
        }

        [DataMember]
        public virtual int PickedGoodsQty
        {
            get { return _pickedGoodsQty; }
            set
            {
                _pickedGoodsQty = value;
            }
        }


        [DataMember]
        public virtual string PickManCode
        {
            get { return _pickManCode.TrimEnd(); }
            set
            {
                _pickManCode = value;
            }
        }

        [DataMember]
        public virtual string PickManName
        {
            get { return _pickManName.TrimEnd(); }
            set
            {
                _pickManName = value;
            }
        }

        [DataMember]
        public virtual string CreateUserCode
        {
            get { return _createUserCode.TrimEnd(); }
            set
            {
                _createUserCode = value;
            }
        }

        [DataMember]
        public virtual string CreateUserName
        {
            get { return _createUserName.TrimEnd(); }
            set
            {
                _createUserName = value;
            }
        }
     

        [DataMember]
        public virtual string CreateDate
        {
            get { return _createDate.TrimEnd(); }
            set
            {
                _createDate = value;
            }
        }
     
        [DataMember]
        public virtual string CreateTime
        {
            get { return _createTime.TrimEnd(); }
            set
            {
                _createTime = value;
            }
        }

        [DataMember]
        public virtual string EditUserCode
        {
            get { return _editUserCode.TrimEnd(); }
            set
            {
                _editUserCode = value;
            }
        }

        [DataMember]
        public virtual string EditUserName
        {
            get { return _editUserName.TrimEnd(); }
            set
            {
                _editUserName = value;
            }
        }

        [DataMember]
        public virtual string EditDate
        {
            get { return _editDate.TrimEnd(); }
            set
            {
                _editDate = value;
            }
        }

        [DataMember]
        public virtual string EditTime
        {
            get { return _editTime.TrimEnd(); }
            set
            {
                _editTime = value;
            }
        }

        [DataMember]
        public virtual string Remark
        {
            get { return _remark.TrimEnd(); }
            set
            {
                _remark = value;
            }
        }

        #endregion
    }
}